import { BTState } from "./BTState";

export interface IConditional<T> {
    readonly discriminator: 'IConditional';
    process(ctx: T): BTState;
}

export function isIConditional(obj: any) {
    return obj.discriminator === 'IConditional';
}